package com.lin.learning.questionmanagement.controller;


import com.lin.learning.questionmanagement.service.TeacherVoService;
import com.our.learning.infrastructure.pojo.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/teacher")
public class TeacherVoController {

    @Autowired
    private TeacherVoService teacherVoService;

    @GetMapping("/teacherlist")
    public ResponseResult teacherList(Integer page, Integer perPage,String name){
        return teacherVoService.teacherList(page,perPage,name);
    }
}
